<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
		request.setCharacterEncoding("utf-8");
		response.setCharacterEncoding("utf-8");
// 		String path = request.getContextPath();
// basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'errorRegister.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script>
		console.log("js已经执行");
		var i=5;
		var t;
		function startTime(){
	 	i--;
	 	if(i<0){
 			window.top.location.href="<%=basePath%>/index/login.html";
 			<%-- response.sendRedirect(path+"/index/login.html");--%>
	 		return ;
	 	}
		document.getElementById("time").innerHTML=i;

		t = setTimeout("startTime();",1000);

		//显示
		
	 }
  
  </script>
  </head>
  <body onload="startTime()">
    <span> 账号/密码错误</span>
		<span id="time">5</span>
			<span >秒跳回登陆界面</span>
  </body>
</html>
